Assigning gateways for heterogeneous wireless mobile networks

ABSTRACT

Systems and methods are provided for assigning gateways for heterogeneous wireless mobile networks. A method includes exchanging routing and connectivity information between a plurality of nodes. Each node is respectively included in a corresponding one of a plurality of mobile ad hoc networks. The information excludes global positioning satellite information. The method further includes determining, for a given node, whether a particular set of gateway functionalities of the given node are redundant with respect to one or more other nodes, based on topology information derived from the information. The method also includes dynamically assigning the given node as a gateway or a non-gateway by respectively turning on or turning off the particular set of gateway functionalities of the given node when the particular set of gateway functionalities of the given node are respectively determined to be non-redundant or redundant with respect to the one or more other nodes.

GOVERNMENT RIGHTS

This invention was made with Government support under Contract No.: W911NF-06-3-0001 awarded by the U.S. Army. The Government has certain rights in this invention.

BACKGROUND

1. Technical Field

The present invention generally relates to mobile networks and, more particularly, to assigning gateways for heterogeneous wireless mobile networks.

2. Description of the Related Art

Inter-domain networking across mobile ad hoc networks is an important capability to enable practical applications, such as search and rescue operations by multi-agencies, disaster recovery efforts by multi-national organizations (such as the RED CROSS, the MEDECINS SANS FRONTIERES, law enforcement), and coalition military operations by multiple forces in a region with little infrastructure support. Inter-domain networking allows different organizations with potentially heterogeneous networking technologies to communicate with each other while preserving the organizational boundaries and their own networking policy. In recent years, the research community started to pay attention to this important yet relatively unexplored problem, and several proposals have been made to address technology gaps. The proposals involve the following: architecture and framework design; inter-domain routing and policy support; and deployment and control of helper nodes to connect multiple domains.

One of the key components to enable inter-domain networking (in both wired and wireless networks) is the gateway. Gateway nodes act as control points to collect and distribute inter-domain routing information, and also enforce inter-domain routing policy enacted by each domain. In addition, gateways play the important role of isolating the intra-domain routing mechanism of one domain from that of other domains. More importantly, in mobile ad hoc networks (MANETs), gateways may need to perform protocol translation since different domains may employ different routing schemes (e.g., reactive, proactive, geo-routing, and so forth). General issues in designing an inter-domain routing protocol in MANETs and building gateways have been presented.

Previous work assumed gateway functionalities are statically assigned to a subset of nodes. While this approach will work well in a static scenario (e.g., wireless mesh), it may be problematic in MANETs due to node mobility. FIGS. 1-4 show an example of network topology changes in MANETs. FIG. 1 shows the initial network topology 100 of a particular MANET. FIG. 2 shows the network topology 200 of the particular MANET after nodes in partition B have moved. FIG. 3 shows the network topology 300 of the particular MANET after a network partition (two nodes in Partition A moved away). FIG. 4 shows the network topology 400 of the particular MANET after regaining cross-partition connectivity. Returning to FIG. 1, there are two partitions, and each partition has a gateway through which the nodes in one partition can communicate with the nodes in the other partition. At some later time, the network topology has changed due to node mobility or wireless channel variation and, as a result, the inter-partition connectivity is lost (FIGS. 2 and 3). In general, any static gateway assignment is bound to suffer from such connectivity problem in dynamic MANETs.

SUMMARY

According to an aspect of the present principles, a method is provided. The method includes exchanging routing and connectivity information between a plurality of nodes. Each of the plurality of nodes is respectively included in a corresponding one of a plurality of mobile ad hoc networks. The routing and connectivity information excludes global positioning satellite information. The method further includes determining, for a given node from among the plurality of nodes, whether a particular set of gateway functionalities of the given node are redundant with respect to one or more other nodes from among the plurality of nodes, based on topology information derived from the routing and connectivity information. The method also includes dynamically assigning the given node as a gateway or a non-gateway by respectively turning on or turning off the particular set of gateway functionalities of the given node when the particular set of gateway functionalities of the given node are respectively determined to be non-redundant or redundant with respect to the one or more other nodes.

According to another aspect of the present principles, a system is provided. The system includes a first multi-domain mobile ad hoc network including a first set of nodes, and a second multi-domain mobile ad hoc network including a second set of nodes. The system further includes a centralized server having a dynamic gateway assigner configured to receive routing and connectivity information from a plurality of nodes formed from the first set of nodes and the second set of nodes, and to determine, for a given node from among the plurality of nodes, whether a particular set of gateway functionalities of the given node are redundant with respect to one or more other nodes from among the plurality of nodes, based on topology information derived from the routing and connectivity information. The given node is configured to dynamically assign itself as a gateway or a non-gateway by respectively turning on or turning off the particular set of gateway functionalities of the given node when the particular set of gateway functionalities of the given node are respectively determined to be non-redundant or redundant with respect to the one or more other nodes.

According to another aspect of the present principles, a computer readable storage medium comprising a computer readable program is provided. The computer readable program when executed on a computer causes the computer to perform the respective steps of the aforementioned method.

According to yet another aspect of the present principles, a method is provided. The method includes exchanging routing and connectivity information between a plurality of nodes. Each of the plurality of nodes is respectively included in a corresponding one of a plurality of mobile ad hoc networks. The routing and connectivity information excludes global positioning satellite information. The plurality of mobile ad hoc networks includes multiple intra-domains and multiple inter-domains. The method further includes deriving a real-time intra-domain topology of the multiple intra-domains and a real-time inter-domain topology of the multiple inter-domains from the routing and connectivity information. The method also includes determining, for a given node from among the plurality of nodes, whether a particular set of gateway functionalities of the given node are redundant with respect to one or more other nodes from among the plurality of nodes, based on the real-time intra-domain topology of the multiple intra-domains and the real-time inter-domain topology of the multiple inter-domains. The method additionally includes dynamically assigning the given node as a gateway or a non-gateway by respectively turning on or turning off the particular set of gateway functionalities of the given node when the particular set of gateway functionalities of the given node are respectively determined to be non-redundant or redundant with respect to the one or more other nodes.

These and other features and advantages will become apparent from the following detailed description of illustrative embodiments thereof, which is to be read in connection with the accompanying drawings.

BRIEF DESCRIPTION OF DRAWINGS

The disclosure will provide details in the following description of preferred embodiments with reference to the following figures wherein:

FIG. 1 is a diagram showing the initial network topology 100 of a particular MANET;

FIG. 2 is a diagram showing the network topology 200 of the particular MANET after nodes in partition B have moved;

FIG. 3 is a diagram showing the network topology 300 of the particular MANET after a network partition (two nodes in Partition A moved away);

FIG. 4 is a diagram showing the network topology 400 of the particular MANET after regaining cross-partition connectivity;

FIG. 5 is a block diagram showing an exemplary processing system 500 to which the present principles may be applied, according to an embodiment of the present principles;

FIG. 6 is a block diagram showing an exemplary system 600 for assigning gateways for heterogeneous wireless mobile networks, according to an embodiment of the present principles;

FIG. 7 is a flow diagram showing an exemplary method 700 for assigning gateways for heterogeneous wireless mobile networks, according to an embodiment of the present principles;

FIG. 8 is a block diagram showing another exemplary system 800 for assigning gateways for heterogeneous wireless mobile networks, according to an embodiment of the present principles.

FIG. 9 is a flow diagram showing another exemplary method 900 for assigning gateways for heterogeneous wireless mobile networks, according to an embodiment of the present principles;

FIG. 10 shows a topology 1000 of a mobile ad hoc network (MANET), according to an embodiment of the present principles;

FIG. 11 shows a partition-level graph 1100 for the MANET of FIG. 10, according to an embodiment of the present principles;

FIG. 12 shows an illustration of the construction 1200 of MGA(

,

, Δ) for a given formula F, according to an embodiment of the present principles;

FIG. 13 shows the initial state 1305 of a gateway assignment 1300 by the Cen algorithm according to an embodiment of the present principles;

FIG. 14 shows step one 1310 of the gateway assignment 1300 by the Cen algorithm, according to an embodiment of the present principles;

FIG. 15 shows the initial state 1505 of a gateway assignment 1500 by DIS-Tight, according to an embodiment of the present principles;

FIG. 16 shows step one 1510 of the gateway assignment 1500 by DIS-Tight, according to an embodiment of the present principles;

FIG. 17 shows step two 1520 of the gateway assignment 1500 by DIS-Tight, according to an embodiment of the present principles;

FIG. 18 shows the initial state 1805 of a gateway assignment 1899 by DIS-Loose, according to an embodiment of the present principles;

FIG. 19 shows step one 1810 of the gateway assignment 1899 by DIS-Loose, according to an embodiment of the present principles;

FIG. 20 shows step two 1820 of the gateway assignment 1899 by DIS-Loose, according to an embodiment of the present principles;

FIG. 21 shows step three 1830 of the gateway assignment 1899 by DIS-Loose, according to an embodiment of the present principles;

FIG. 22 shows step four 1840 of the gateway assignment 1899 by DIS-Loose, according to an embodiment of the present principles;

FIG. 23 shows step five 1850 of the gateway assignment 1899 by DIS-Loose, according to an embodiment of the present principles;

FIG. 24 shows step six 1860 of the gateway assignment 1899 by DIS-Loose, according to an embodiment of the present principles; and

FIG. 25 shows step seven 1870 of the gateway assignment 1899 by DIS-Loose, according to an embodiment of the present principles.

DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS

As noted above, the present principles are directed to assigning gateways for heterogeneous wireless mobile networks.

In general, any static gateway assignment is bound to suffer from the above described connectivity problem in dynamic MANETs. At a high level, there are two options to overcome this problem as follows: (1) make all nodes as gateways so that every node can handle inter-partition traffic; and (2) dynamically assign the role of gateway to suitable nodes that can make inter-partition connections as topology changes. The first approach is not very attractive because gateway nodes typically consume more power for multi-protocol processing and will generate more control traffic for inter-domain route and policy update. Thus, the present principles are directed to the second option.

In particular, the present principles aim to provide distributed mechanisms to elect gateways adaptively and optimally. By optimal, we mean to elect a minimal number of nodes to become gateways while all network partitions (i.e., represented as sub-graphs) are connected. To solve this problem, we formulated a novel graph optimization problem which called Minimal Gateway Assignment Problem, and proved its NP-completeness. We then designed efficient algorithms to solve this problem. We first designed centralized algorithms assuming full topology information and show that it has a theoretical approximation bound. We then designed distributed algorithms with various degrees of assumptions on the level of cooperation between domains and the availability of full topology information, and prove the correctness of the proposed distributed algorithms.

In one or more embodiments, we assume that routing information is sent to an external computation unit through a separate control channel (e.g., 3G, WiMax, etc.), or a subset (or all) of the nodes in the network can obtain the entire network topology information. Then we can apply the centralized algorithm to compute gateway assignment. We provide two centralized mechanisms with different computation complexity and performance bound in terms of number of gateways.

(i) SimpCen: In each step a pair of inter-partition neighbors is put into gateway assignment when such assignment can improve the connectivity at the partition-level topology.

(ii) Cen: To improve the performance of SimpCen, a heuristic is used to check thoroughly to make sure that the selected nodes as gateways will always provide the largest decrease in the number of disjoint components with the smallest number of gateway assignments in each step.

Distributed Mechanisms

In this case, we do not assume global network topology knowledge. Nodes exchange routing information with their neighbors, and progressively propagate the information throughout the network. When the nodes receive the routing information, the nodes determine their roles in the network locally, and switch on/off their gateway functionalities.

We disclose three mechanisms, with different level of cooperation and shared information. Regarding the levels of cooperation, we provide two illustrative schemes of cooperation, namely a tightly cooperative scheme and a loosely cooperative scheme. In the “tightly cooperative” scheme, nodes in one domain can enforce the decisions of nodes in other domains in order to achieve a better decision. On the other hand, the loosely cooperative algorithm will only use the other domain decisions as reference. Regarding the level of shared information, we have two levels of shared information, namely full information and partial information. Full information means a node can make decisions only if it has the full topology information. Partial information means a node can make decisions even it only has partial information.

(i) DIS-Tight: Tightly Cooperative with Full Topology Information. At each step, a node is selected randomly (e.g., by using a back-off timer) to make a decision. The node will decide to activate its gateway functionality base on the current topology information. If the node decides to activate its gateway functionality, then its inter-partition neighbors will also activate their gateway functionality

(ii) DIS-Loose: Loosely Cooperative with Full Topology Information. A node can decide if it wants to become an active gateway based on the number of gateways in its neighborhood. The idea behind this scheme is the following: if a node has a greater number of inter-partition neighbors, the chance to reduce the number of disconnected components in the partition-level graph will be higher if the node is a gateway. That is, for example, if a Node A has more neighbors than a Node B, then the chance that Node A can build a communication link with other gateways is higher than for Node B. Nodes do not enforce their inter-partition neighbors to activate their gateway functionality.

(iii) DIS-Local: Tightly Cooperative Algorithms with Partial Information. In some scenarios, the network can be a relatively large graph such that it may take a long time to propagate the assignment decision throughout the network. To address this issue, a node is allowed to make decisions even when the node has partial information. In an embodiment, nodes only collect information from their 1-hop neighboring partitions. Of course, other hop distances can also be used, while maintaining the spirit of the present principles.

TABLE 1 shows some common notations used herein.

TABLE I Notation Description G = (V, E) The whole network topology of MANET Comp(G) The number of disjoint components in a graph G D The set of administrative domains P The set of network partitions, |P| _ |P| P(n) The partition node n belongs to V(n) The set of nodes in the same partition as n N A subset of nodes as a gateway assignment Gdm[N] = The partition-level graph (P, Ldm(P, N)) Nbitd(n) The set of inter-partition neighbors of node n Nbita(n) The set of intra-partition neighbors of node n NGitd(n) The set of inter-partition neighbors of node n that are also in gateway assignment N NGita(n) The set of intra-partition neighbors of node n that are also in gateway assignment N

Moreover, as used herein, the word “domain” refers to a logical concept determined by the organization that the network nodes belong to, whereas “partition” is a physical concept determined by the connectivity. For example a single domain owned by the RED CROSS can be divided into multiple partitions. In this regard, it will be more precise to call our problem an inter-partition connectivity problem since a MANET domain can be partitioned into multiple sub-networks. However, we use “domain” and “partition” interchangeably when there is no ambiguity.

Inter-domain refers to items (e.g., topology, networking, interactions, information, etc.) that relate to different domains. Intra-domain refers to items (e.g., topology, networking, interactions, information, etc.) that relate to the same (single) domain. Multi-domain refers to having and/or otherwise involving more than one domain. Inter-partition neighbors refers to neighbors which do not belong to the domain having a node under current consideration with respect to assigning that node as a gateway. Real-time intra-domain topology refers to an essentially real-time representation of the topology of one or more intra-domains. Real-time inter-domain topology refers to an essentially real-time representation of the topology of one or more inter-domains.

Thus, the present principles provide multiple mechanisms to elect gateways dynamically and optimally. By dynamic, we mean to elect gateways according to runtime network topology that changes over time. By optimal, we mean to elect a minimal number of nodes to become gateways while all network partitions are connected. Multiple mechanisms with different level of coordination, cooperation and shared information are disclosed.

As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or computer program product. Accordingly, aspects of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, aspects of the present invention may take the form of a computer program product embodied in one or more computer readable medium(s) having computer readable program code embodied thereon.

Any combination of one or more computer readable medium(s) may be utilized. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.

A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.

Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).

Aspects of the present invention are described below with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer readable medium that can direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer readable medium produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.

The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.

The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

FIG. 5 is a block diagram showing an exemplary processing system 500 to which the present principles may be applied, according to an embodiment of the present principles. The processing system 500 includes at least one processor (CPU) 502 operatively coupled to other components via a system bus 504. A read only memory (ROM) 506, a random access memory (RAM) 508, a display adapter 510, an I/O adapter 512, a user interface adapter 514, and a network adapter 598, are operatively coupled to the system bus 504.

A display device 516 is operatively coupled to system bus 504 by display adapter 510. A disk storage device (e.g., a magnetic or optical disk storage device) 518 is operatively coupled to system bus 504 by I/O adapter 512.

A mouse 520 and keyboard 522 are operatively coupled to system bus 504 by user interface adapter 514. The mouse 520 and keyboard 522 are used to input and output information to and from system 500.

A (digital and/or analog) modem 596 is operatively coupled to system bus 504 by network adapter 598.

Of course, the processing system 500 may also include other elements (not shown), including, but not limited to, a sound adapter and corresponding speaker(s), and so forth, as readily contemplated by one of skill in the art.

FIG. 6 shows an exemplary system for assigning gateways for heterogeneous wireless mobile networks, according to an embodiment of the present principles. The system 600 is directed to a centralized embodiment of the present principles. The system 600 includes a first multi-domain mobile ad hoc network 610 having a first set of nodes 611, a second multi-domain mobile ad hoc network 620 having a second set of nodes 612, and a centralized server 630. The centralized server 630 includes a dynamic gateway assigner 631. In system 600, the dynamic gateway assigner in the centralized server 630 collects routing and connectivity information from the first set of nodes 611 and the second set of nodes 612, and determines whether or not to turn on or turn off the gateway functionalities of any given node in the sets based on whether such gateway functionalities are redundant with respect to other nodes in the sets. The functions of the elements of system 600 will be described in further detail hereinafter.

FIG. 7 shows an exemplary method 700 for assigning gateways for heterogeneous wireless mobile networks, according to an embodiment of the present principles. The method 700 is directed to a centralized embodiment of the present principles. At step 710, routing and connectivity information is monitored. At step 720, a routing and connectivity information update is sent to the centralized sever (responsive to a timer trigger or topology change detected by the route and connectivity monitoring per step 710). At step 730, the distributed algorithm is executed (responsive to the routing and connectivity information update). At step 740, it is determined (responsive to a received reply from the centralized server) whether or not the current node is a gateway. If so, then control is passed to a step 750. Otherwise, control is passed to a step 760. At step 750, the gateway functionalities are turned on. At step 760 the gateway functionalities are turned off.

FIG. 8 shows an exemplary system for assigning gateways for heterogeneous wireless mobile networks, according to an embodiment of the present principles. The system 800 is directed to a distributed embodiment of the present principles. The system 800 includes a first multi-domain mobile ad hoc network 810 having a first set of nodes 811, a second multi-domain mobile ad hoc network 820 having a second set of nodes 812. Each of the nodes in the first set of nodes 811 and the second set of nodes 812 respectively include a dynamic gateway assigner 831. In system 800, the dynamic gateway assigner 831 in the nodes in the first set of nodes 811 and the second set of nodes 812 exchanges routing and connectivity information. Moreover, each of the nodes in the first set of nodes 811 and the second set of nodes 812 determines whether or not to turn on or turn off the gateway functionalities of themselves based on whether such gateway functionalities are redundant with respect to other nodes in the sets. The determinations are made by the respective dynamic gateway assigner 831 in each of the nodes. The functions of the elements of system 800 will be described in further detail hereinafter.

FIG. 9 shows another exemplary method 900 for assigning gateways for heterogeneous wireless mobile networks, according to an embodiment of the present principles. The method 900 is directed to a distributed embodiment of the present principles. At step 910, routing and connectivity information is monitored. At step 920, changes are propagated to inter-partition neighbors and intra-partition neighbors (responsive to a timer trigger or topology change detected by the route and connectivity monitoring per step 910). At step 930, the distributed algorithm is executed (responsive to the receive route and connectivity information from neighbors). At step 940, it is determined whether or not the current node is a gateway. If so, then control is passed to a step 950. Otherwise, control is passed to a step 960. At step 950, the gateway functionalities are turned on. At step 960 the gateway functionalities are turned off.

Minimal Gateway Assignment Problem

We now formally formulate the gateway assignment to support interoperation subject to connectivity constraint.

First, consider a set of potential gateways that belong to different partitions. We suppose that a gateway can belong to only one partition. A pair of neighboring gateways can act for a bridge for the nodes in their respective partitions.

Given a connected graph

=(

, ε) as the topology of gateways in multi-partition MANETs, where each node n∈

is a potential gateway. Then we partition the set

as

, which represents the collection of disjoint connected subgraphs of

(i.e., the set of partitions), such that

satisfies the following constraints:

(1) (Connectedness): For each subgraph where

_(i)⊂

_(i), is a subgraph of

and

_(i) is a connected graph.

(2) (Disjointness): For any pair of subgraphs

₁=

_(i), ε),

(

_(j), ε_(j)), we have

_(i)∩

=Ø, and

_(i)=

Namely, we assume that the gateways in each domain are connected (i.e., by direct connections or indirect connections through other non-gateway nodes). We note that an administrative domain that is partitioned into multiple sub-networks without intra-domain connectivity will be regarded as multiple partitions.

Given a subset

⊂

, we define the partition-level graph with each node as a partition in

as

_(dm)[

]=(

_(dm)(

)), where the set of links

_(dm)(

) is defined as follows:

(Inter-partition Links): For a pair of distinct partitions

,

∈

, (

,

) ∈

_(dm)(

) if there exist n, n′∈

, such that n∈

n′∈

, and (n, n′)∈ε.

FIG. 10 shows a topology 1000 of a mobile ad hoc network (MANET), according to an embodiment of the present principles. FIG. 11 shows a partition-level graph 1100 for the MANET of FIG. 10, according to an embodiment of the present principles. The MANET shown in FIGS. 10 and 11 involve four partitions, namely Partition, Partition B, Partition C, and Partition D. The selected gateway nodes are indicated with a J (check mark). The gateway assignment for the MANET of FIG. 10 provides the minimal number of gateways to enable the cross-partition communications of four partitions. The topology A “gateway assignment” is a subset of nodes

⊂

, such that the partition-level graph

_(dm)[

]=(

_(dm)(

)) is connected. That is, a node is assigned as an (active) gateway, if it is in the assignment

.

Definition 1: (Minimal Gateway Assignment Optimization Problem, MGA(

)). Given a connected graph

=(

, ε), and a collection of disjoint connected subgraphs

of

, we find a gateway assignment

with the smallest size |

|.

Definition 2: (Minimal Gateway Assignment Decision Problem, MGA(

, Δ)). Given a connected graph

=(

, ε), and a collection of disjoint connected subgraphs

of

, we decide if there exists a gateway assignment

, such that |

|≦Δ.

Theorem 1: Minimal gateway assignment decision problem MGA(

, Δ) is NP-complete.

Proof: It is easy to show that the gateway assignment decision problem is in NP, by checking the connectivity of graph

_(gw)[

] and |

|Δ, for a given gateway assignment

.

To show MGA(

, Δ) is NP-hard, we rely on a polynomial time reduction from the 3SAT problem.

Definition 3: (3SAT Problem) Consider a 3-CNF formula F that includes m clauses and h variables, i.e. F=c₁

c₂

. . . c_(m), where each c_(i)=y_(j) ₁

y_(j) ₂

y_(j) ₃ and y_(j) ₁ , y_(j) ₂ , y_(j) ₃ ∈{x₁, x ₁, . . . , x_(h), x _(h)}. F is said to be satisfiable, if there exists a truth assignment to F, such that every clause has at least one true variable. 3SAT is well-known to be NP-complete.

Given a 3-CNF formula F, we assume each clause does not include a literal and its complement (as this is trivially satisfiable). We construct a corresponding MGA(

, Δ), such that F is satisfiable, if and only if MGA(

, Δ) is satisfiable.

First, we set

=Ø, ε=Ø and

=Ø. For each literal x_(j), x _(j) we add two nodes x_(j), x _(j)∈

, and create a subgraph

_(x) _(j) =(

x _(j) , ε_(x) _(j) )∈

, such that

_(x) _(j) ={x_(j), x _(j)} and ε={(x_(j), x _(j))}. Then, set ε=∪_(h=1, . . . h)ε_(x) _(j) . Moreover, we add edges (x_(j) _(i) , x_(j) ₂ ), (x_(j) ₁ , x _(j) ₂ ), ( x _(j) ₁ , x_(j) ₂ ), ( x ₁ , x _(j) ₁ , x _(j) ₂ )∈ε for each pair of literals x_(j) ₁ , x_(j) ₂ .

Next, for each clause c_(i)=y_(j) ₁

y_(j) ₂

y_(j) ₃ , we add one node c_(i)∈

, and create a subgraph

_(c) _(i) ₌({c_(i)}, Ø)∈

. If y_(j) ₁ =x_(j) ₁ , then add an edge (c_(i), x_(j) ₁ )ε∈. Else if y_(j) ₁ = x _(j) ₁ , then add an edge (c_(i), x _(j) ₁ )∈ε. Finally, we set Δ=h+m.

It is easy to see that the construction of (

) is polynomial in time. FIG. 12 shows an illustration of the construction 1200 of MGA(

, Δ) for a given formula F, according to an embodiment of the present principles. In the example of FIG. 12, the given formula F=(x₁

x ₂

x ₃)

( x ₁

x₂

x₃)

(x₁

x₂

x₃). Moreover, the dashed circles indicate the nodes belonging to the same partition. The truth assignment is x₁=0, x₂=0, x₃=1, which is depicted as a gateway assignment with the selected nodes indicated by a √ (check mark).

(If Part): We show if F is satisfiable, then MGA(

, Δ) is satisfiable with a gateway assignment

such that |

|=Δ. First, we set

=Ø. Then for each clause c_(i), we add c_(i)∈

. Next, for each variable x _(j) either one of x_(j) or x _(j) is true. If x_(j) is true, then we add x_(j)∈

. Otherwise, if x _(j) is true, then we add x _(j)∈

. It is easy to see that the partition-level graph

_(dm)[

]=(

_(dm) (

)) is connected, and |

|=h+m.

(Only-if Part): We show if MGA(

, A) is satisfiable, then F is satisfiable. Suppose

is the satisfiable gateway assignment. Since each c_(i) is a partition with one single node, c_(i)∈

. Hence, this takes up m nodes. Next, each pair of x_(j), x _(j) are a domain. There are h domains. That implies that only one of x_(j), x _(j) is in

. This gives rise to a consistent assignment for each variable. Also, since the partition-level graph

_(dm)[

]=(

_(dm)(

)) is connected, each c_(i) is connected to at least one x_(i) or x _(j). Hence, every clause is satisfiable.

Therefore, we show that MGA (

, Δ) is NP-hard, because 3SAT problem is NP-complete.

Since MGA(

, Δ) is NP-complete, the optimization problem MGA(

) is unlikely to be solvable in polynomial time. However, we next present a simple greedy algorithm that yields a constant approximation bound.

Centralized Gateway Assignment Algorithms

We first present SimpCen, a simple centralized algorithm for MGA(

) based on a greedy heuristic. In SimpCen, in each step, a pair of inter-partition neighbors is put into gateway assignment

when such assignment can improve the connectivity at the partition-level topology. We let Comp(

) be the number of disjoint components in a graph

.

Algorithm 1 SimpCen: Input (

,

), Output 

  1:

← Ø 2: for each (n,n′) ∈ ε do 3:  if Comp( 

_(dm)[ 

]) > Comp(

_(dm)[ 

 ∪ {n,n′}]) then 4:   

 ←

 ∪ {n,n′} 5:  end if 6: end for 7: return 

It is easy to see that the runtime of SimpCen is O(|ε|·(|

|+|ε|v)), because the runtime to find out the number of components in the partition-level graph takes O(|

+|ε|) by using breadth-first search with hash tables to store the visited nodes and partitions.

Theorem 2: Given minimal gateway assignment problem MGA(

), let

_(opt) be the gateway assignment such that |

_(opt)| is the smallest. Let

_(SimpCen) be the gateway assignment output by SimpCen. Then, we have the following:

|

_(SimpCen)|≦|

_(opt)|−2

That is, SimpCen is at least as good as the 2-approximation polynomial-time algorithm for the MGA(

) problem.

Proof: The proof is given in the Appendix. Now we show that the analysis in Theorem 2 is tight.

Theorem 3: For any constant ∈>0, there exists an instance on which SimpCen outputs

_(SimpCen) which |

_(SimpCen)|>(2|

_(opt)|−2)−∈.

Proof: The proof is given in the Appendix.

To improve the performance of SimpCen, a heuristic is to check thoroughly to make sure that the selected nodes as gateways will always give the largest decrease in the number of disjoint components with the smallest number of gateway assignment in each step. This gives the algorithm Cen.

For each node n∈

, we denote the Nb^(ita)(n) as the intra-partition neighbors of n, and n is always connected to Nb^(ita)(n). The inter-partition neighbors of n is denoted as Nb^(itd)(n):

Nb^(itd)(n)

{n′|n′∈

\Nb^(ita)(n) and (n,n′)∈ε}

Algorithm 2 Cen: Input (

,

), Output 

  1:

 ← Ø 2: repeat 3:  for each n ∈

 \ 

 do 4:   X(n) ← n 5:   for each n′ ∈ Nb^(itd)(n) do 6:    if Comp(

_(dm)[ 

]) > Comp(

_(dm)[ 

 ∪ X(n)]) then 7:     X(n) ← X(n) ∪ n′ 8:    end if 9:   end for 10:   W(n) ← Comp(

_(dm)[ 

]) - Comp(

_(dm)[ 

 ∪ X(n)]) 11:  end for 12:  

* ← arg

W(n) 13:  n* ← arg

*|X(n)| 14:  if W(n*) > 0 then 15:   

 ←

 ∪ X (n*) 16:  end if 17: until W(n*) > 0 18: return 

In each iteration, Cen selects a node that needs a minimal number of new gateways that help to connect the maximum number of disjoint components. The value X(n) defined in line 4 and updated in line 7 refers to the set of new nodes needed to assign into

(i.e., to become gateways) in order to reduce the number of disjoint components in

_(dm)[

] and the value of W(n) defined in line 10 refers to the number of disjoint components that can be connected if X(n) are assigned into

. Random tie-breaking is applied when there are multiple n*.

Following a similar proof as the one in Theorem 2, it is easy to see that Cen is at least as good as 2-approximation, because Cen only assigns a gateway if the assignment reduces the number of disjoint components in

_(dm). The runtime of Cen is O(|

|·|ε|·(|

|+|ε|)), since for each n we only calculate Comp

_(dm)[

∪{n, n′}], for {n, n′}∈ε which is bounded by |E|.

FIGS. 13 and 14 provide an illustrative example for the execution of the Cen algorithm with 4 partitions, 8 nodes and their corresponding connectivity. In particular, FIG. 13 shows the initial state 1305 of a gateway assignment 1300 by the Cen algorithm according to an embodiment of the present principles, and FIG. 14 shows step one 1310 of the gateway assignment 1300 by the Cen algorithm, according to an embodiment of the present principles. The selected gateways are indicated by a √ (check mark). Initially, the set

is empty n₆ is added into

because n₆ makes the most number of new connected partitions among all n_(i)∈

(i.e., W(n₆)=3). After n₆ is added, n₁, n₄ and n₇ are also assigned into

because n₁, n₄, n₇∈Nb^(itd)(n₆) (i.e., they are the inter-partition neighbors of n₆). Notice that although n₂∈Nb^(itd)(n₆), n₂ is not assigned into

because Partition-A and Partition-B are already connected with n₁, n₆∈

. Finally, the algorithm terminates with |

_(cen)|=4.

Distributed Gateway Assignment Algorithms

In the distributed algorithms, a node decides that if it becomes active gateway or not according to the connectivity information collected from its intra- and inter-partition neighbors. For simplicity, we assume the following:

(A1) Network topology changes at a slower rate compared to the convergence speed of the gateway assignment algorithm (i.e., the topology is stable during the execution of algorithm).

(A2) Each node can learn Nb^(ita) from the intra-domain routing protocols (e.g., Destination-Sequenced Distance-Vector Routing Protocol (DSDV), Optimized Link State Routing Protocol (OLSR)), and Nb^(itd) by proper neighbor discovery mechanisms.

(A3) At any point in time, only one node makes the decision. This can be approximated by various mechanisms, e.g., exponential backoff timer. More discussion on this issue is set forth with respect to Remarks 1 and 4.

(A4) When node n assigns itself as a gateway, it will propagate the assignment decision throughout the entire network. Other nodes will progressively learn the

_(t) (i.e.,

at step t) by receiving such notifications. We will show how to relax this assumption hereinafter.

We present two classes of distributed algorithms herein, with full and partial topology information. In both cases, we assume that nodes agree to help each other and share their connectivity information. For the algorithms with full information, we further design two algorithms with different levels of cooperation among the nodes in different partitions, namely, tightly cooperative and loosely cooperative algorithms. We now describe them in detail.

Tightly Cooperative Algorithms with Full Topology Information

First, we describe a simple procedure to construct the weights W(n) and X(n) of Cen in a distributed fashion without the knowledge of the whole topology G. One main factor is the number of disjoint components in the partition-level graph, Comp(

_(dm)[

_(t)]). Suppose each node only knows the inter-domain neighbors Nb^(itd) and intra-domain neighbors Nb^(ita). At each step, each node maintains a partial graph

_(dm)[

_(t)] by exchanging the list of connected partitions from the inter-domain neighbors and intra-domain neighbors. Progressively, a complete topology

_(dm)[

_(t)] can be obtained that requires the message complexity at most O(|ε|·|

|). Now we consider two algorithm designs.

(1) Naive Algorithm: One simple way to design a distributed algorithm is to randomly select a node n at one time instant and assign both n and the set of its inter-partition neighbors Nb^(itd)(n) to be the set of gateways

. One benefit of this simple approach is that the design of the distributed protocol will be simpler and the computation overhead is limited. This naive approach is used as a baseline for comparison hereinafter.

(2) Distributed Tightly Cooperative Algorithm: In this algorithm DIS-Tight, we assume that a suitable timeout mechanism is in place to coordinate the decision process among the nodes. Assuming that timer granularity is larger than the propagation time within a domain, only one node will make decision at a time. When the backoff timer expires at node n, node n then collects the W(n′) and X (n′) from all n′∈Nb^(ita)(n) (i.e., the intra-partition neighbors of n), and find out the optimal node to become the gateway in

(n), where

(n) is defined as the partition that node n belongs to. If node n is not the optimal node, it starts the timer again and waits for the next turn. Otherwise, node n assigns itself as a gateway and requests X (n) to become gateways as well, and broadcast the decision. Note that although DIS-Tight is triggered by an exponential backoff timer, the process of collecting information for partition-level graph

_(dm)[

_(t)] is assumed to run in the background triggered by the broadcast events.

Theorem 4: The number of gateways assigned by DIS-Tight, |

_(DIS-Tight)|, bounded by 2|

_(opt)| where

_(opt) is the gateway assignment such that |

_(opt)| is the smallest. That is, DIS-Tight is a 2-approximation.

Algorithm 3 DIS-Tight: Input (event)   1: if event = timer-expired then 2:  //deciding whether to be a gateway or not 3:  collect W(n) and X(n) from Nb^(ita)(self) 4:  

 * ← arg max_(n∈Nb) ^(ita) _((self)) W(n) 5:  n* ← arg

 |X(n)| 6:  if n*=(self) then 7:  //decided to be a gateway 8:  stop timer 9:  

_(t) ←

_(t−1) ∪ {n*} ∪ X(n*) 10:  //propagate the partition-level connectivity information 11:  broadcast 

_(t) and

_(dm)[ 

_(t)] 12: else if W(n*) = 0 then 13:  //n* cannot reduce no. of disconnected components 14:  stop timer 15: else 16:  //wait for another time instant for decision 17:  start timer 18: end if 19: end if 20: 21: if event = broadcast 

_(t) and

_(dm)[ 

_(t)] then 22:  update 

_(t) and

_(dm)[ 

_(t)] 23: end if 24: 25: //updating the weights used for gateway assignment decisions 26: if event=request W(n) and X (n) then 27:  X(n) ← Ø 28:  for each n′ ∈ Nb^(itd)(n) do 29:   if Comp(

_(dm)[ 

_(t)]) > Comp(

_(dm)[ 

_(t) ∪ X(n)]) then 30:    X (n) ← X (n) ∪ n′ 31:   end if 32:  end for 33:  W(n) ← Comp(

_(dm)[ 

_(t)]) - Comp(

_(dm)[ 

_(t) ∪ {n}∪ X(n)]) 34:  return W(n) and X (n) 35: end if

Proof The proof is given in the Appendix.

Theorem 5: The distributed process of DIS-Tight will terminate at a correct state where all partitions are connected in finite steps.

Proof: The proof is given in the Appendix.

FIGS. 15, 16, and 17 provide an illustrative example for the execution of DIS-Tight. In particular, FIG. 15 shows the initial state 1505 of a gateway assignment 1500 by DIS-Tight, according to an embodiment of the present principles. FIG. 16 shows step one 1510 of the gateway assignment 1500 by DIS-Tight, according to an embodiment of the present principles. FIG. 17 shows step two 1520 of the gateway assignment 1500 by DIS-Tight, according to an embodiment of the present principles. The selected gateway nodes are indicated with a √ (check mark). In this example, nodes wake up with the sequence n₁, n₂, n₃, . . . , and they execute the DIS-Tight algorithm when their timer expires. n₁ assigns itself as an active gateway because W(n₁)=W(n₂)=2>0 (tiebreaks with node ID). Similar to the centralized algorithm, when n₁ is assigned as a gateway, n₆, n₇, are also assigned as gateways. In the next step, n₂ wakes up and assigns itself as gateway because W(n₂)=1>0, and n₃ are also assigned as gateway. After this step, when the remaining nodes wake up, they will stop their timer because of W(n)=0. Finally, the algorithm terminates with |

_(DIS-Tight)|=5.

Remark 1: (Exclusive execution of DIS-Tight). In general, there is no efficient mechanism to ensure only one node to execute a distributed procedure in the large MANETs environment because that requires either complete locking of all nodes or synchronization of timers. One practical way to “roughly” achieve this condition is to utilize an exponential backoff timer, which has been used extensively in the IEEE 802.11 and the Ethernet protocols, to reduce the probability of simultaneously triggering a distributed procedure at different nodes. We thus apply an exponential backoff mechanism in DIS-Tight.

Even if the timers expire simultaneously in DIS-Tight, it does not affect the correctness of DIS-Tight because DIS-Tight only assigns nodes to become gateways but not disables gateways. When more nodes become gateways, the partition-level graph will eventually reduce to one single connected component. However, the result in Theorem 4 may not hold because executes DIS-Tight simultaneously may lead to a suboptimal solution. We leave the users of DIS-Tight to decide whether (i) the number of gateways in the network, or (ii) communication overhead for locking or synchronization, is more important in operation.

Remark 2: (When to execute DIS-Tight). Ideally, DIS-Tight should be executed whenever the topology is changed (i.e., resetting the gateway assignment). On the other hand, executing DIS-Tight will incur communication overhead and extensive changes to the active gateway set. With practical models of link characteristics such as the expected lifetime and change rate, one can further optimize when to execute DIS-Tight (e.g. aggregate multiple events of topology changes). In practice, each partition can execute DIS-Tight (i) periodically at certain time interval, or (ii) when partition-level topology changes have been detected.

Loosely Cooperative Algorithms with Full Topology Information

The assumption of DIS-Tight that a node in other partition will always follow the request from a node making a decision may not be valid. In general, nodes in each partition should make its own decision based on its energy level and other considerations such as its mobility and mission objectives. Therefore we consider a case of “loosely” cooperative model where the nodes in each partition are willing to optimize the global objective, but without enforcement from the outside partition. In this case, a node n can decide if it wants to become an active gateway based on the number of gateways in Nb^(itd)(n) and the size of Nb^(itd)(n). The main idea behind this algorithm is fairly simple: if node n has more number of inter-partition neighbors and gateways, the chance to reduce the number disconnected components in the partition-level graph will be higher if node n is a gateway. We consider two versions of loosely cooperative algorithms.

(1) Naive Algorithm: Similar to the naive algorithm herein, when the timer of node n is expired, it assigns itself as an active gateway. The only difference between the loosely cooperative and tightly cooperative version is that in the loosely cooperative version, node n does not assign its inter-partition neighbors as gateways. This naive algorithm is used as a baseline for comparison hereinafter.

Algorithm 4 DIS-Loose: Input (event)   1: if event =timer-expired then 2:  collect WS(n), NG^(itd)(n) and Nb^(itd)(n) from n ∈ Nb^(ita) (self) 3:  

* ← arg max_(n∈Nb) ^(ita) _((self)) WS (n) 4:  n* ← arg max Nb^(itd)(arg

NG(n)) 5:  if n* = self then 6:   stop timer 7:   

_(t) ←

_(t−1) ∪ {n*} 8:   broadcast 

_(t) and

_(dm)[ 

_(t)] 9:  else if Nb^(itd)(self)

 Nb^(itd)(NG^(ita)(self)) then 10:   stop timer 11:  else 12:   start timer 13:  end if 14: end if 15: 16: if event=broadcast 

_(t) and

_(dm)[ 

_(t)] then 17:  update 

_(t) and

_(dm)[ 

_(t)] 18: end if 19: 20: if event=request WS(n), NG^(itd)(n) and Nb^(itd)(n) then 21:  WS(n) ← Comp(

_(dm)[ 

_(t)]) - Comp(

_(dm)[ 

_(t) ∪ {n}]) 22:  return WS(n), NG^(itd)(n) and Nb^(itd)(n) 23: end if

(2) Distributed Loosely Cooperative Algorithm: Similar to the tightly cooperative version, when node n timer expires, it collects the WS (n′), NG (n′) from all n′∈Nb^(ita)(n), and finds out the optimal node to become the gateway in

(n). Different from Cen and DIS-Tight, WS(n) is defined as follows:

WS(n)

Comp(

_(dm)[

_(t)])−Comp(

_(dm)[

_(t)∪{n}])

which means the reduction in the number of disconnected components in

_(dm)(n) when only node n is assigned to

_(t). NG^(ita)( ), and NG^(itd)(n) are defined as follows:

NG^(ita)(n)

{n′|n′∈

∩Nb^(ita)(n)}

NG^(itd)(n)

{n′|n′∈

∩Nb^(itd)(n)}

which means the set of gateways in the intra-partition and inter-partition neighbors of node n respectively.

Theorem 6: The distributed process of DIS-Loose will terminate at a correct state where all partitions are connected in finite steps.

FIGS. 18-25 provide an illustrative example for the execution of DIS-Loose. In particular, FIG. 18 shows the initial state 1805 of a gateway assignment 1899 by DIS-Loose, according to an embodiment of the present principles. FIG. 19 shows step one 1810 of the gateway assignment 1899 by DIS-Loose, according to an embodiment of the present principles. FIG. 20 shows step two 1820 of the gateway assignment 1899 by DIS-Loose, according to an embodiment of the present principles. FIG. 21 shows step three 1830 of the gateway assignment 1899 by DIS-Loose, according to an embodiment of the present principles. FIG. 21 shows step four 1840 of the gateway assignment 1899 by DIS-Loose, according to an embodiment of the present principles. FIG. 23 shows step five 1850 of the gateway assignment 1899 by DIS-Loose, according to an embodiment of the present principles. FIG. 24 shows step six 1860 of the gateway assignment 1899 by DIS-Loose, according to an embodiment of the present principles. FIG. 25 shows step seven 1870 of the gateway assignment 1899 by DIS-Loose, according to an embodiment of the present principles. The selected gateway nodes are indicated with a √ (check mark). In the example of FIG. 18, assume the nodes wake up with the sequence n₁, n₂, n₃, n₄, n₅, n₆, n₇, n₈. The decision made by each node at each step is presented as follow:

Step 1: n₁ decides that it is a gateway because Nb^(itd)=2>0, which is the best among the unassigned nodes in Partition-A

Step 2: n₂ decides that it is a gateway because Nb^(itd)(n₂)=2>0, which is the best among the unassigned nodes in Partition-A

Step 3: n₃ decides that it is a gateway because WS(n₃)=1>0, which is the best among the unassigned nodes in Partition-B

Step 4: n₄ decides that it is a gateway because Nb^(itd)(n₄)=2>0, which is the best among the unassigned nodes in Partition-B

Step 5: n₅ decides that it is not a gateway because Nb^(itd)(n₅)⊂Nb^(itd)(n⁶) and the optimal node in Partition-C is n₆. After n₆ is selected as a gateway, n₅ stops its timer

Step 6: n₆ decides that it is a gateway because WS(n₆)=2>0, which is the best among the unassigned nodes in Partition-C

Step 7: n₇ decides that it is a gateway because WS(n₇)=2>0

Step 8: n₈ decides that it is not a gateway because Nb^(itd)(n₈)⊂Nb^(itd)(n⁷)

Finally, the process terminates with |

_(DIS-Loose)|=6.

Remark 3: (Leader selection in each partition). In DIS-Tight and DIS-Loose, when node n discovers that it is not the optimal node for

(n), it will sleep and wait for the optimal node to wakeup. We argue that node n should not notify the optimal node in its partition for faster convergence, because if that happens a partition with more nodes will assign gateways at a faster rate than a partition with less nodes. One way to speed up the convergence is to elect a leader for each partition. When the timer at a leader expires, the leader collects the partition connectivity information and assigns the optimal node in its partition to become a gateway. We note that electing a leader for each partition only improves the convergence time but does not reduce the number of gateway assigned by our proposed algorithms.

Tightly Cooperative Algorithms with Partial Information

In some scenarios,

can be a relatively large graph such that it may take long time to propagate the assignment decision throughout the network. To address this issue, we relax the assumption (A4) such that a node n can make decisions even n only has partial information. In the relaxed assumption (A4), we assume that nodes only collect information from

(n)'s 1-hop neighboring partitions.

Algorithm 5 DIS-Local: Input (event)   1: if event=Nb^(itd)(

 (self)) changed then 2:  exponential-backoff-timer( ); 3:  if self is not gateway then 4:   for n in Nb^(itd)(self) do 5:    if 

 (n) 

 

 (NG^(itd)(NG^(ita)(self))) then 6:     enable self gateway functions 7:     enable n gateway functions 8:    end if 9:   end for 10:  else 11:     //keep gateways with large |

 (NG^(itd)(n))| 12:     for n in NG^(ita)(self) do 13:      if 

 (N^(itd)(self))

 

 (NG^(itd)(n)) then 14:       disable self gateway functions 15:      end if 16:     end for 17:     // 

 (NG^(itd)(self)) already covered by others 18:     if 

 (N^(itd)(self)

 

 (NG^(itd)(NG^(ita)(self))) then 19:      disable self gateway functions 20:     end if 21:    end if 22:   end if 23: 24: //notify role change to

 (self) 25: if role change then 26:  broadcast role changes to

 (self) 27: end if 28: 29: if event=Nb^(itd)(self) changed then 30:  broadcast Nb^(itd)(self) changes to

 (self) 31: end if

Algorithm 5 shows the pseudocode of the gateway assignment algorithm, DIS-Local. The basic idea of DIS-Local is that each partition tries to establish a gateway pair to its 1-hop neighboring partitions. Different from DIS-Tight, a partition,

(n), in DIS-Local tries to form a 1-level tree root at

(n) in the partition-level graph. The resulting mesh then will have a richer set of edges in

_(dm)[

], compared to the one generated by DIS-Tight.

Similar to the previous distributed algorithms, DIS-Local relies on the exponential backoff timer to achieve exclusive execution. For a node n, when the 1-hop neighborhood of n is changed, n will broadcast such changes to its intra-partition neighbors (lines 29-31). Once the nodes in

(n) receive that information, they decide which nodes will become gateways. Node n will assign itself as a gateway if one of n's neighboring partitions is not connected by the other gateways in

(n) (lines 5-8). On the other hand, n will not assign itself as a gateway if all n's neighboring partitions is connected by the other gateways in

(n) (lines 17-20). A simple heuristic to keep nodes with larger number of connected partitions is applied to reduce the number of gateways in

(n) (lines 11-16).

Theorem 7: The number of gateways assigned by DIS-Local, |

_(DIS-Local)|, is bounded by |

|(|

|−1).

Lemma 1: The worse case performance ratio of DIS-Local over Cen is

$\frac{}{2}.$

Theorem 8: DIS-Local guarantees a partition is connected to its 1-hop neighboring partitions if there is no simultaneous execution.

The proofs of Theorem 7, Lemma 1, and Theorem 8 are given in the Appendix.

Remark 4: (Exclusive execution of DIS-Local). Similar to Remark 1 herein, the exponential backoff cannot completely guarantee exclusive execution. When multiple nodes are executing DIS-Local simultaneously, a partition can be disconnected from its 1-hop neighboring partitions. We argue that this will only slow down the convergence speed of DIS-Local because the disconnection will be detected eventually as far as the exponential backoff timer generates a exclusive execution sequence. To guarantee connectivity, when node n wants to make a decision, n needs to apply appropriate locks on (i) the nodes in other partitions (line 7), and (ii) the nodes in

(n).

Discussion Weighted Gateway Assignment

In some scenarios, we may want to optimize for other performance metrics than the number of gateways. For example, it is reasonable to assume that gateway election can be based on node capability, remaining energy level, security level, and stationarity (that the node will not disappear as easily as other nodes). The problem then becomes a node-weighted gateway assignment problem. We believe that the proposed centralized algorithms can be easily extended to support the weighted version of the problem. For example, in each iteration of Cen, instead of selecting a node which requires the minimal number of new gateways (i.e., |X(n)|), we can select a node which optimizes the total weight of the new gateways. Similar extension can be made to the distributed algorithms.

Resilient Gateway Assignment

In general, there is a trade-off between the number of gateways and the resilience of inter-partition connectivity. If there are only a few inter-partition links, then they may be easy to disconnect due to mobility. We can address the problem by provision more redundant links, say, by guaranteeing connectivity across partitions. Developing practical distributed algorithms to guarantee such condition is an interesting research topic, which will be pursued in the future.

Thus, herein we addressed the gateway assignment problem for enabling interoperations among heterogeneous MANETs. We formulated the problem as an optimization problem which assigns minimal number of gateways to support full connectivity among different network partitions, and proved that this problem is NP-complete. We also designed centralized algorithm that guarantees a tight 2-approximation bound and have shown that empirically it performs very close to the optimal solution (within 4% compared to the optimal). We studied two important design choices to develop the distributed versions: (i) level of cooperation (i.e., tightly or loosely cooperative), and (ii) level of shared information (i.e., full or partial topology information). Cooperation across domains is a very important factor in order to obtain good active gateway assignment. The proposed algorithms have been shown to converge to a correct state in finite time and have been shown to work well in medium size inter-domain MANET scenarios.

APPENDIX Proof of Theorem 2

Proof: First, note that |

_(opt)|≧|

|. Thus, it is sufficient to show that |

_(SimpCen)|≦2|

|−2.

Assume that SimpCen terminates in k steps. At step l, we denote b_(l)as the number of new nodes that is assigned into

. Also, we denote the number of disjoint components at step l as Comp(

_(dm)[

_(l)]). Note that Comp(

_(dm)[

₀])=|

| and Comp(

_(dm)[

_(k)])=1. Also note that k≦|

|−1 because SimpCen assigned {n, n′} into

only if the assignment reduces the number of disjoint components, and there are at most |

| disjoint components. Then we have the following:

 SimpCen  = ∑ l = 1 k  b i ≤ ∑ l = 1 k  ( Comp  ( dm  [ N l - 1 ] ) - Comp  ( dm  [ l ] ) + 1 ) = Comp  ( dm  [ 0 ] ) - Comp  ( dm  [ k ] ) + k ≤ 2    - 2

Proof of Theorem 3

Proof Consider the following example. There are 3 partitions, Partition A contains n₁, Partition B contains n₂, n₃, Partition C contains n₄, n₅, and {n₁, n₂}, {n₃, n₅}, {n₁, n₄}∈ε. The optimal solution is

_(opt)={n₁, n₂, n₄}. However, depends on the ordering of edges in ε, SimpCen can first select {n₁, n₂} then {n₃, n₅} since both edges will reduce the number of connected components.

Proof of Theorem 4

Proof: For DIS-Tight to assign node n to become a gateway, n must have W(n)>0. As only one node is allowed to make a decision at each step, assigning node n as gateway implies the assignment will reduce the number of disconnected components in

_(dm)[

_(t)] by at least one. The rest of the proof then becomes similar to the one in Theorem 2 and we omit the details of the proof for brevity.

Proof of Theorem 5

Proof: We first show that DIS-Tight will terminate in finite steps. When node n makes a decision, n executes one of the following actions: (a) selects itself as a gateway in

(n) and stop the timer, (b) stop the timer because of W(n*)=0 or (c) do nothing (e.g., let the optimal node in

(n) to assign itself) and wait for next timer expiration. Obviously action (a) and (b) will progressively lead the distributed process to terminate. Node n keeps repeating action (c) until it becomes the best unassigned node in

(n). Assuming node n ranks k^(th) in

(n), node n will stop its timer after the first k nodes in

(n) are selected. As |

(n)| is finite, the distributed process will terminate in finite steps.

Next we show that the distributed process will terminate at a correct state by contradiction. Assume the process stop at a state where some partitions are not connected. This implies that all timers stop (i.e., the process is terminated) and W(n)>0 for some n∈

\

. However, this cannot happen because n stops its timer only if W(n)=0 or n∈

.

Proof of Theorem 7

Proof: It is easy to see that |

_(DIS-Local)|≦|

|(|

|−1). Since each partition establishes a gateway pair with its 1-hop neighboring partitions, there will be at most

$\frac{{}\left( {{} - 1} \right)}{2}$

such gateway pairs. We omit the details for brevity.

Proof of Lemma 1

Proof: We proved that the performance of Cen is bounded by 2(|

|−1). The remaining details will be easy to construct and we skip that for brevity.

Proof of Theorem 8

Proof: We show this by contradiction. Assume a partition is not connected to its 1-hop neighboring partitions. This implies that DIS-Local disables some gateways, say

_(wrong), incorrectly such that there are some 1-hop neighboring partitions can only be reached by

_(wrong). However, this cannot be true because DIS-Local only disables gateways when the 1-hop neighboring partitions are already connected by other gateways in

(n) (lines 13 and 18).

Having described preferred embodiments of a system and method (which are intended to be illustrative and not limiting), it is noted that modifications and variations can be made by persons skilled in the art in light of the above teachings. It is therefore to be understood that changes may be made in the particular embodiments disclosed which are within the scope of the invention as outlined by the appended claims. Having thus described aspects of the invention, with the details and particularity required by the patent laws, what is claimed and desired protected by Letters Patent is set forth in the appended claims. 

1. A method, comprising: exchanging routing and connectivity information between a plurality of nodes, each of the plurality of nodes being respectively included in a corresponding one of a plurality of mobile ad hoc networks, the routing and connectivity information excluding global positioning satellite information; determining, for a given node from among the plurality of nodes, whether a particular set of gateway functionalities of the given node are redundant with respect to one or more other nodes from among the plurality of nodes, based on topology information derived from the routing and connectivity information; and dynamically assigning the given node as a gateway or a non-gateway by respectively turning on or turning off the particular set of gateway functionalities of the given node when the particular set of gateway functionalities of the given node are respectively determined to be non-redundant or redundant with respect to the one or more other nodes.
 2. The method of claim 1, wherein said dynamically assigning step is performed by the given node.
 3. The method of claim 1, wherein said determining step is performed responsive to a topology change in one or more of the plurality of mobile ad hoc networks.
 4. The method of claim 1, wherein the method is performed using a centralized gateway assignment such that at least said determining step is performed by a centralized server with respect to the plurality of mobile ad hoc networks.
 5. The method of claim 4, wherein the topology information comprises an intra-domain topology and an inter-domain topology of the plurality of mobile ad hoc networks, the intra-domain topology and the inter-domain topology being known and considered by the centralized server when performing said determining step.
 6. The method of claim 5, wherein the routing and connectivity information is stored at the centralized server for deriving the intra-domain topology and the inter-domain topology there from.
 7. The method of claim 1, wherein the method is performed using a distributed gateway assignment such that at least said determining step is respectively performed by each of the plurality of nodes.
 8. The method of claim 1, further comprising turning on the particular set of gateway functionalities of inter-partition neighbors of the given node from among the plurality of nodes, when the particular set of gateway functionalities of the given node are determined to be non-redundant resulting in the particular set of gateway functionalities of the given node being turned on.
 9. The method of claim 1, further comprising individually enabling each of the plurality of nodes to perform at least said dynamically assigning step.
 10. The method of claim 1, wherein the topology information comprises an intra-domain topology and an inter-domain topology of the plurality of mobile ad hoc networks, and said determining step comprises evaluating the intra-domain topology and the inter-domain topology of the plurality of mobile ad hoc networks with respect to one or more criterion.
 11. The method of claim 1, wherein the plurality of mobile ad hoc networks are associated with a plurality of domains, the given node is comprised in one of the plurality of domains, and at least one of the one or more other nodes is comprised in a different one of the plurality of domains, and said determining step comprises enforcing a gateway functionality redundancy decision or a gateway functionality non-redundancy decision determined for the at least one of the one or more other nodes that is comprised in the different domain than the given node when rendering a decision for the given node for the determining step.
 12. The method of claim 1, wherein the plurality of mobile ad hoc networks are associated with a plurality of domains, the given node is comprised in one of the plurality of domains, and at least one of the one or more other nodes is comprised in a different one of the plurality of domains, and said determining step comprises using as a non-binding reference a gateway functionality redundancy decision or a gateway functionality non-redundancy decision for the at least one of the one or more other nodes that is comprised in the different domain than the given node when rendering a decision for the given node for the determining step.
 13. The method of claim 1, wherein the topology information comprises an intra-domain topology and an inter-domain topology of the plurality of mobile ad hoc networks, and said determining step is performed for the given node only when the intra-domain topology and the inter-domain topology are available for use with respect to said determining step.
 14. The method of claim 1, wherein each of the plurality of nodes is a respective one of a plurality of mobile wireless devices.
 15. A system, comprising: a first multi-domain mobile ad hoc network comprising a first set of nodes; a second multi-domain mobile ad hoc network comprising a second set of nodes; and a centralized server having a dynamic gateway assigner configured to receive routing and connectivity information from a plurality of nodes formed from the first set of nodes and the second set of nodes, and to determine, for a given node from among the plurality of nodes, whether a particular set of gateway functionalities of the given node are redundant with respect to one or more other nodes from among the plurality of nodes, based on topology information derived from the routing and connectivity information, wherein the given node is configured to dynamically assign itself as a gateway or a non-gateway by respectively turning on or turning off the particular set of gateway functionalities of the given node when the particular set of gateway functionalities of the given node are respectively determined to be non-redundant or redundant with respect to the one or more other nodes.
 16. The system of claim 15, wherein said dynamic gateway assigner performs a redundancy determination for the particular set of gateway functionalities of the given node responsive to a topology change in one or more of the first multi-domain mobile ad hoc network and the second multi-domain mobile ad hoc network.
 17. The system of claim 15, wherein the topology information comprises an intra-domain topology and an inter-domain topology of the first and second mobile ad hoc networks, the intra-domain topology and the inter-domain topology being known and considered by the dynamic gateway assigner when determining whether the particular set of gateway functionalities of the given node are redundant with respect to the one or more other nodes.
 18. The system of claim 15, wherein said centralized server turns on the gateway functionalities of inter-partition neighbors of the given node from among the plurality of nodes, when the particular set of gateway functionalities of the given node are determined to be non-redundant resulting in the gateway functionalities of the given node being turned on.
 19. The system of claim 15, wherein the first multi-domain mobile ad hoc network and the second multi-domain mobile ad hoc network are collectively associated with a plurality of domains, the given node is comprised in one of the plurality of domains, and at least one of the one or more other nodes is comprised in a different one of the plurality of domains, and said dynamic gateway assigner enforces a gateway functionality redundancy decision or a gateway functionality non-redundancy decision determined for the at least one of the one or more other nodes that is comprised in the different domain than the given node when rendering a decision for the given node with respect to determining whether the particular set of gateway functionalities of the given node are redundant with respect to the one or more other nodes.
 20. The system of claim 15, wherein the first multi-domain mobile ad hoc network and the second multi-domain mobile ad hoc network are collectively associated with a plurality of domains, the given node is comprised in one of the plurality of domains, and at least one of the one or more other nodes is comprised in a different one of the plurality of domains, and said dynamic gateway assigner uses as a non-binding reference a gateway functionality redundancy decision or a gateway functionality non-redundancy decision for the at least one of the one or more other nodes that is comprised in the different domain than the given node when rendering a decision for the given node with respect to determining whether the particular set of gateway functionalities of the given node are redundant with respect to the one or more other nodes.
 21. The system of claim 15, wherein each of the plurality of nodes is a respective one of a plurality of mobile wireless devices.
 22. A computer readable storage medium comprising a computer readable program, wherein the computer readable program when executed on a computer causes the computer to perform the following: exchanging routing and connectivity information between a plurality of nodes, each of the plurality of nodes being respectively included in a corresponding one of a plurality of mobile ad hoc networks, the routing and connectivity information excluding global positioning satellite information; determining, for a given node from among the plurality of nodes, whether a particular set of gateway functionalities of the given node are redundant with respect to one or more other nodes from among the plurality of nodes, based on topology information derived from the routing and connectivity information; and dynamically assigning the given node as a gateway or a non-gateway by respectively turning on or turning off the particular set of gateway functionalities of the given node when the particular set of gateway functionalities of the given node are respectively determined to be non-redundant or redundant with respect to the one or more other nodes.
 23. A method, comprising: exchanging routing and connectivity information between a plurality of nodes, each of the plurality of nodes being respectively included in a corresponding one of a plurality of mobile ad hoc networks, the routing and connectivity information excluding global positioning satellite information, the plurality of mobile ad hoc networks comprising multiple intra-domains and multiple inter-domains; deriving a real-time intra-domain topology of the multiple intra-domains and a real-time inter-domain topology of the multiple inter-domains from the routing and connectivity information; determining, for a given node from among the plurality of nodes, whether a particular set of gateway functionalities of the given node are redundant with respect to one or more other nodes from among the plurality of nodes, based on the real-time intra-domain topology of the multiple intra-domains and the real-time inter-domain topology of the multiple inter-domains; and dynamically assigning the given node as a gateway or a non-gateway by respectively turning on or turning off the particular set of gateway functionalities of the given node when the particular set of gateway functionalities of the given node are respectively determined to be non-redundant or redundant with respect to the one or more other nodes.
 24. A computer program product comprising a computer readable storage medium including a computer readable program, wherein the computer readable program when executed on a computer causes the computer to perform the method steps as recited in claim
 23. 25. The method of claim 23, further comprising individually enabling each of the plurality of nodes to perform at least said dynamically assigning step. 